$(function () {
   $(".login_btn2").on("click",function () {
       $.ajax({
           url:"test/loginAction",
           type:"post",
           data:{
               username:"admin",
           },
           success(result){
               console.log(result.msg);
               window.location.href='main'
           },
           error(e){

           }
       })
   })
});